package com.baidu.mapper;

import com.baidu.pojo.TbCity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Entity com.baidu.pojo.TbCity
 */
@Mapper
public interface TbCityMapper extends BaseMapper<TbCity> {

    @Select("select * from tb_city where pid=#{pid}")
    List<TbCity> sanji(@PathVariable("pid") Integer pid);
}




